package com.yyx.proxy;

import java.lang.reflect.Method;

public class TestInvocationHandler implements ProxyInvocationHandler {
    Object target;
    public TestInvocationHandler(Object target){
        this.target=target;
    }


    public Object invoke(Method method, Object[] args) throws Throwable {
        System.out.println("做AOP日志");
        method.invoke(target,args);
        System.out.println("返回200");
        return null;
    }
}
